<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8"></meta>
    <#include "../include/common.html">
        <link rel="stylesheet" href="${absolutePath}/resource/css/admin.user.css"/>
        <title>修改背景图</title>
        </head>
<body>
<#include "top.html">
    <div class="main">
        <#include "left.html">
            <div class="main-right">
                <div class="navigation"><span>个人信息管理</span>&nbsp;&gt;&nbsp;<span>修改风格</span></div>
                <div id="system-icon">
                    <div class="theme-item">
                        <div><label>默认排版<input type="radio" class="not-input" name="themeType" value="0"
                            <#if themeType==0>checked="checked"</#if>
                            /></label></div>
                        <div>
                            <img src="${absolutePath}/resource/images/theme/theme0.jpg"/>
                        </div>
                    </div>
                    <div class="theme-item">
                        <div><label>博客排版<input type="radio" class="not-input" name="themeType" value="1"
                            <#if themeType==1>checked="checked"</#if>
                            /></label></div>
                        <div>
                            <img src="${absolutePath}/resource/images/theme/theme1.jpg"/>
                        </div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="save-btn">
                    <a href="javascript:;" class="btn" id="save-btn">保存</a>
                </div>
            </div>
    </div>
</body>
<script>
    $(function () {
        $("#save-btn").click(function () {
            save($(this));
        });
    });

    function save(curObj) {
        ulewo.ajaxRequest({
            url: ulewo.absolutePath + "/admin/save_user_center_theme.action",
            data: {
                themeType: $("input[name=themeType]:checked").val()
            },
            fun: function (response) {
                ulewo.tipMsg({
                    type: "success", content: "保存成功", timeout: 1500
                });
            }
        });
    }
    ;
</script>
</html>

